#include <iostream>

using  namespace std;

#define N 10

int find(int a[N],int ws);

int main ( )
{ 
    int a[N],ws,pos,i;
    cout<<"enter the a[N]"<<endl;
    for(i=0;i<N;i++)
    {
        cin>>a[i];
    }
    cout<<"enter the number which need to find"<<endl;
    cin>>ws;

    pos=find(a,ws);

    if(pos>0)    cout<<"the first postion of"<<ws<<"is"<<pos<<endl;
    else  cout<<"don't find"<<endl;
    
    cin>>i;
    return 0;
}

int find(int a[N],int ws)
{
    int i,fd=-1;

    for(i=0;i<N;i++)
    {
        if(a[i]==ws) 
            {
                fd=i;
                break;
            }
    }

    return fd;
}
            


